/*
 * @ Created with Clion
 * @ Author Morbid
 * @ Date 2022/07/28
 * @ Time 9:28
 */

#include <cstdio>
#include "SqQueue.h"
int main() {
    SqQueue Q;
    InitQueue(Q);
    EnQueue(Q, 1);
    if (QueueEmpty(Q))
        printf("队空！\n");
    EnQueue(Q, 2);
    int x;
    for (int i = 0; i < 3; ++i) {
        if (DeQueue(Q, x))
            printf("出队成功！出队元素为%d\n", x);
        else
            printf("出队失败！\n");
    }
    if (QueueEmpty(Q))
        printf("队空！\n");
    return 0;
}